cboj-loans-prc-api
Get Loan Past Dues
Description: This endpoint is used to get the loan past due details based on loanId. The loanId being passed in path parameter.
Mulesoft Request:
Headers:
Mandatory Headers: x-channel-id,x-correlation-id, x-bank-id,client_id, client_secret
Optional Headers: x-sub-channel-id,x-user-id, Authorization,x-debug-flag,x-debug-flag, x-customer-id
Paramaters:
URI Params: /{id}/
Query Params: NA
Content-type: application/json
Mulesoft Response:
Success Response: (200)
{
"status": {
"success": "true",
"code": "200",
"arabicMessage": "تمت العملية بنجاØ",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"customer": {
"customerId": "1235446"
},
"pastDueLoan": [
{
"id": "AABILL2102609TRS",
"category": "20210126",
"noOfDaysDue": "7",
"displayPayDate": "100",
"totalAmount": "100",
"interest": "1",
"principalAmount": "500"
}
]
}
}
Sample Error Response:
400 :
{
"status":
{
"success": false,
"code": "400",
"reasonCode": "BadRequest",
"arabicMessage": "لم يتم العثور على سجلات تطابق Ù…Øددات البØØ«",
"englishMessage": "No records were found that matched the selection criteria",
"backendError": "No records were found that matched the selection criteria",
"backendCode": "T24003790"
}
}